package com.jeff.view.demo;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.jeff.view.library.LoadingDialog;

public class MainActivity extends AppCompatActivity {

    LoadingDialog mLoadingDialog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

//        mLoadingDialog = new LoadingDialog(this);
//        mLoadingDialog.show();

        LoadingDialog.Builder builder = new LoadingDialog.Builder(this)
                .background(R.drawable.x_loading_dialog_default_backgroud)
                .loadingImage(R.drawable.x_icon_loading)
                .loadingText("加载中...")
                .loadingTextColor(android.R.color.white)
                ;
        builder.build().show();
    }


}
